import request from '@/utils/request'

// 查询专业信息管理列表
export function listSpeciality(query) {
  return request({
    url: '/speciality/speciality/list',
    method: 'get',
    params: query
  })
}

// 查询专业信息管理详细
export function getSpeciality(spid) {
  return request({
    url: '/speciality/speciality/' + spid,
    method: 'get'
  })
}

// 新增专业信息管理
export function addSpeciality(data) {
  return request({
    url: '/speciality/speciality',
    method: 'post',
    data: data
  })
}

// 修改专业信息管理
export function updateSpeciality(data) {
  return request({
    url: '/speciality/speciality',
    method: 'put',
    data: data
  })
}

// 删除专业信息管理
export function delSpeciality(spid) {
  return request({
    url: '/speciality/speciality/' + spid,
    method: 'delete'
  })
}
